package com.zhuojy.equity.mall.admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuojy.equity.mall.admin.common.annotation.ExcelExport;
import com.zhuojy.equity.mall.admin.common.entity.po.THolidayPo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:LYL
 * @Date 2024/3/19 9:28
 * 审批表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_audit_center")
public class TAuditCenter implements Serializable {
    private static final long serialVersionUID = -67921820145895046L;
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelExport(value = "审批ID", sort = 1)
    private Long id;
    @ExcelExport(value = "审批标题", sort = 3)
    private String title;
    private Integer sponsorId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sponsorTime;
    private Integer status;
    private String remark;
    private Integer leaveType;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelExport(value = "发起时间", sort = 6)
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelExport(value = "完成时间", sort = 4)
    private Date endTime;
    @ExcelExport(value = "请假时长", sort = 5)
    private String duration;
    private String matter;
    private String approver;
    private String carbon;
    private Integer deptId;
    private Integer balance;
    private String approvalStatus;
    @TableField(exist = false)
    private TPosition tposition;
    @TableField(exist = false)
    private TUser tuser;
    @TableField(exist = false)
    private THolidayPo holiday;
    @TableField(exist = false)
    private String nickName;
}
